<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Ones extends Model
{
   protected $table='students';
      public static function stuAdd($data){
          return self::insert($data);
      }
    public static function getAll(){
        return self::paginate(3);//分页 显示3条数据
    }
    public static function del($id){
        return self::where('id',$id)->delete();
    }
}
